﻿#region [===== Using =====]
using System;
using Microsoft.SharePoint;
#endregion

namespace TPG.SharePoint.Workflow
{
    /// <summary>
    /// Represents the common meta-data of the association and instantiation
    /// page.
    /// </summary>
    public class ConfigurationMetaData
        : WorkflowMetaData
    {
        #region [===== Properties =====]
        /// <summary>
        /// Gets the <see cref="AssociationType" /> indicating with what
        /// kind of target the association is being performed.
        /// </summary>
        public AssociationType AssociationType { get; internal set; }
        /// <summary>
        /// Gets the name of the target with which the association is 
        /// performed.
        /// </summary>
        /// <remarks>
        /// For list associations this method returns the list title, otherwise
        /// the content-type name is returned.
        /// </remarks>
        public string AssociationTargetName { get; internal set; }
        #endregion
    }
}
